

export const setToken = (token: string) => {
  localStorage.setItem('token', token)
}
export const setUserName = (name: string) => {
  localStorage.setItem('name', name)
}
export const getUserName = (defaultValue: string) => {
  return localStorage.getItem('name') || defaultValue
}
export const getToken = () => {
  return localStorage.getItem('token')
}